<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>添加</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>
    <link rel="stylesheet" href="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/css/fileinput.min.css">

    <style>
        .form-control{margin-bottom: 8px;}
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .radio-inline {line-height: 5px;}
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak>

    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <form id="Form" autocomplete="off">
                <div style="padding: 0">
                    <input type="hidden" name="id">
                    <input type="hidden" name="version" value="0">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">名称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="name" placeholder="请输入名称">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">简介</label>
                        <div class="col-sm-10">
                            <textarea name="introduction" class="form-control" rows="3" placeholder="请输入简介">{{desc}}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-3 form-group">
                            <label class="form-inline">基础服务费</label>
                            <input class="form-control" type="text" name="basicPrice" min="0" oninput="value=value.replace(/[^\d(\.\d{1,2})]/g,'')"
                                   value="" placeholder="请输入基础服务费">
                        </div>
                        <div class="col-sm-3 form-group">
                            <label class="form-inline">商品原价</label>
                            <input class="form-control" type="text" name="oldPrice" min="0" oninput="value=value.replace(/[^\d(\.\d{1,2})]/g,'')"
                                   value="" placeholder="请输入商品原价">
                        </div>
                        <div class="col-sm-3 form-group">
                            <label class="form-inline">商品售价</label>
                            <input class="form-control" type="text" name="price" min="0" oninput="value=value.replace(/[^\d(\.\d{1,2})]/g,'')"
                                   value="" placeholder="请输入商品售价">
                        </div>
                        <div class="col-sm-3 form-group">
                            <label class="form-inline">是否置顶</label>
                            <select class="form-control" name="isTop">
                                <option value="1">置顶</option>
                                <option value="0">不置顶</option>
                            </select>
                        </div>
                    </div>

                    <div class="col-sm-12 form-group">
                        <label class="form-inline">商品描述</label>
                        <div>
                            <input id="articleContent" type="hidden" name="description">
                            <div id="editor">
                            </div>
                        </div>
                    </div>
                    <div class="form-group" style="margin-top: 10px">
                        <label class="form-inline">图片<font style="color: red">尺寸：【】</font></label>
                        <input id="articleImg" type="hidden" name="imgId">
                        <input type="hidden" id="oldImgId" name="oldImgId">
                        <div class="file-loading">
                            <input id="fileUploadBtn" type="file" name="file">
                        </div>
                    </div>
                </div>

                <div style="text-align: center">
                    <a href="javascript:parent.layer.closeAll();" class="btn btn-default" style="width: 10%;">关 闭</a>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-if="permission(0)" >保存</button>
                    <button type="submit" class="btn btn-primary" style="width: 10%;" v-else="permission(1)" >保存</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script src="../../../../../../public-tools/pc/plugins/wangEditor/wangEditor-video.js"></script>
<script src="../../../../../../public-tools/pc/plugins/bootstrap-fileinput/js/fileinput.min.js"></script>
<script src="../../../../../../education-root/admin/js/business-manage/package/package/edit.js"></script>
</body>
</html>
